#-*-encoding=utf-8-*-
title=u"""辞职申请书"""
description=u"""辞职所需要填写的申请书"""
displayed_columns=[u'name', u'department', u'postName', u'resignDate']
facetag = u"""None"""

fields=(
    TextLineField(
        title=u'姓名',
        write_condition=u'',
        size=18,
        default_value_exp=u'""',
        name=u'name'
),
    SingleSelectField(
        title=u'所在部门',
        vocabulary_exp=u"flowsettings['do_department']",
        limit=4,
        write_condition=u'',
        default_value_exp=u"flowsettings['do_department'][0]",
        name=u'department'
),
    TextLineField(
        description='',
        title=u'现任职位名称',
        validation_exp=u'',
        write_condition=u'',
        size=18,
        default_value_exp=u'""',
        name=u'postName'
),
    TextField(
        rows=5,
        description='',
        title=u'辞职原因',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'reason'
),
    DateField(
        minutestep=5,
        description='',
        title=u'申请日期',
        showtime=False,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today()',
        name=u'applicationDate'
),
    DateField(
        minutestep=5,
        title=u'拟离日期',
        showtime=False,
        validation_exp=u"not value and '拟离日期必须填写'",
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today()',
        name=u'resignDate'
),
    PersonSelectField(
        title=u'工作交接人',
        validation_exp=u"not value and '工作交接人必须填写'",
        multiple_selection=True,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'[]',
        name=u'nextWorkOfPeople'
),)

fields_validation_script=ur""""""
